<link rel="stylesheet" type="text/css" href="market/css/market.css">
<div class="market">
	<div ng-include="'common/header.html'"></div>
	<div class="marketMain">
		<section class="category">
			<ul>
				<li ng-repeat="(i, item) in categories" ng-click="changeTab()" ng-class="{'active': i == currentIndex}">
					{{item.name}}
				</li>
			</ul>
		</section>
		<section class="goods-list">
			<ul>
				<li ng-repeat="(i, item) in goods">
					<div class="img">
						<img ng-src="{{item.img}}">
					</div>
					<div class="info">
						<h3>{{item.name}}</h3>
						<p>
							<span class="jingxuan">精选</span>
                            <span class="sale">买一赠一</span>
						</p>
						<p class="weight">180g</p>
						<p>
						 	<span class="price">￥{{item.price}}</span>
							<span class="market-price" ng-if="item.price != item.market_price">￥{{item.market_price}}</span>
						</p>
					</div>
					<div class="btns">
						<span class="reduce" ng-click="reduce()" ng-hide="item.count == 0"></span>
						<span class="count" ng-hide="item.count == 0">{{item.count}}</span>
						<span class="add" ng-click="add()"></span>
					</div>
				</li>
			</ul>
		</section>

	</div>
	
</div>